extends PlayerState

func Enter() -> void:
	super.Enter()
	player.velocity.y = jump_power
	animated_sprite_2d.play("jump")
	
func Physic_Update(_delta:float) -> void:
	super.Physic_Update(_delta)
	
#	短跳
	if is_release_jump and player.velocity.y < jump_power/2.0:
		player.velocity.y = jump_power/2.0
#	往下的时候是 fall
	
	if player.velocity.y > 0:
		transition_to("fall")
	else:
		animated_sprite_2d.play("jump")	
